import React, { Component } from "react";
import { HashRouter, Switch, Route, Redirect } from "react-router-dom";
import profile from './../pages/profile';

//路由
export default class Routeconfig extends Component {
  render() {
    return (
      <HashRouter>
        <Switch>
          <Redirect exact from="/" to="/profile" />
          <Route component={profile} />
        </Switch>
      </HashRouter>
    );
  }
}
